﻿<Page
    x:Class="BehaviorDemoApp1.BlankPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BehaviorDemoApp1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Win8nl_Behaviors="using:Win8nl.Behaviors"
    xmlns:WinRtBehaviors="using:WinRtBehaviors"

    mc:Ignorable="d">

    <Grid Background="Black" DataContext="{StaticResource TestViewModel}">
        <TextBlock HorizontalAlignment="Left" Margin="503,213,0,0" TextWrapping="Wrap" 
		 VerticalAlignment="Top" FontSize="36" Text="Drag me" Height="56" Width="182">
      <WinRtBehaviors:Interaction.Behaviors>
         <Win8nl_Behaviors:DragFlickBehavior BrakeSpeed ="{Binding BrakeSpeed,Mode=TwoWay}"/>
      </WinRtBehaviors:Interaction.Behaviors>
        </TextBlock>
        <Button Content="Drag me too!" HorizontalAlignment="Left" Margin="244,281,0,0" 
		 VerticalAlignment="Top" Height="66" Width="190" FontSize="24" >
            <WinRtBehaviors:Interaction.Behaviors>
                <Win8nl_Behaviors:DragFlickBehavior BrakeSpeed ="{Binding BrakeSpeed,Mode=TwoWay}"/>
            </WinRtBehaviors:Interaction.Behaviors>
        </Button>
        <Slider HorizontalAlignment="Left" Margin="561,320,0,0" VerticalAlignment="Top" Width="149"   Value ="{Binding BrakeSpeed,Mode=TwoWay}">
        </Slider>


    </Grid>

</Page>
